package com.yoda.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yoda.dto.AdvDto;
import com.yoda.dto.AdvPageQuery;
import com.yoda.entity.YddAdvpos;
import com.yoda.result.Result;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author itcast
 * @since 2023-05-15
 */
public interface IYddAdvposService extends IService<YddAdvpos> {

    /**
     * 分页查询
     * @return
     */
    public Result pageQuery(AdvPageQuery advPageQuery);


    /**
     * 广告位修改
     * @param dto
     * @return
     */
    public Result updateAdv(AdvDto dto);

    /**
     * 广告位详情
     * @param id
     * @return
     */
    public Result selectById(String id);


    /**
     * 广告位删除
     * @param id
     * @return
     */
    @GetMapping("/del")
    public Result deleteById(String id);


    /**
     * 广告位列表-全部
     * @return
     */
    @GetMapping("/all")
    public Result selectAll();


    /**
     *  广告位添加
     * @param yddAdvpos
     * @return
     */
    public Result addAdv(YddAdvpos yddAdvpos);

}
